// layout.js
document.addEventListener('DOMContentLoaded', function() {
    // Load header
    fetch('/blog/head')
        .then(response => response.text())
        .then(data => {
            document.head.innerHTML += data;
        });

    // Load footer
    fetch('/blog/footer')
        .then(response => response.text())
        .then(data => {
            document.body.innerHTML += data;
        });
});
